import javax.swing.ImageIcon;
import javax.swing.JLabel;


public class Zombie {
	protected JLabel sprite;
	
	public Zombie(JLabel imagen) {
		this.sprite = imagen;
	}
	
	public void mover() {
		int x = this.sprite.getLocation().x;
		if (x>0) 
			sprite.setLocation( x-1, this.sprite.getLocation().y );
	}
	
	public JLabel getSprite() {
		return this.sprite;
	}
}
